package com.smfx.yxt.service;

import java.util.List;

import com.smfx.yxt.model.ParentInfo;
import com.smfx.yxt.model.ParentStudentRel;
import com.smfx.yxt.page.Page;
import com.smfx.yxt.reqVo.ParentReqVO;
import com.smfx.yxt.view.ParentPersonImportView;
import com.smfx.yxt.view.ParentRelStudentView;

public interface IParentService {

	List<ParentInfo> selectList();
	
	List<ParentInfo> selectListByIds(List<String> parentIds);
	
	ParentInfo selectParentById(Integer id);
	
	ParentInfo selectByOpenid(String openid);
	
	ParentStudentRel selectParentStudentRelById(Integer id);
	
    int updateForParent(ParentInfo record);
    
    int updateForParentRelStudent(ParentStudentRel rel);
    
    /**
	 * 更新家长积分
	 * @param teacher
	 * @return
	 */
    int updatePoints(Integer id, Float point);
    
    /**
     * 家长绑定的小孩数量
     * @param openid
     * @return
     */
    int selectCountByOpenid(String openid);
    
    List<ParentRelStudentView> selectStudentListForParent(ParentReqVO vo);
    
    int selectStudentCountForParent(ParentReqVO vo); 
    
    int saveParentRelStudent(ParentRelStudentView view);
    
    List<ParentRelStudentView> selectListForClass(ParentReqVO vo);
    /**
     * 根据openid查询所有绑定学生
     * @param openid
     * @return
     */
    List<ParentRelStudentView> selectRelStudentByOpenid(String openid);
    
    int delByRelId(ParentReqVO vo);
    
    List<ParentRelStudentView> selectParentListByStudentId(Integer studentId);
    
    List<ParentPersonImportView> selectPersonImport(Page<ParentPersonImportView> page);
    
    ParentPersonImportView selectParentViewByStudent(Integer parentId, Integer studentId);
    
    int selectNoPersonIdCount();
    
    int updateBatchPersonId(List<ParentInfo> list);
    
}
